<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .box{
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            /*align-content 控制 多行 flex item在交叉轴上面的排布*/
            /*align-content: flex-start;*/
            /*align-content: flex-end;*/
            /*align-content: center;*/
            /*align-content: stretch;*/

            /*align-content: space-between;*/
            /*align-content: space-around;*/
            /*align-content: space-evenly;*/


          /*
            align-items: flex-start;
            align-items: flex-end;
            align-items: center;
            align-items: stretch;*/

            width: 500px;
            height: 500px;
            border: 1px solid red;
        }

        .box1{
            width: 100px;
            height: 100px;
            background-color: #f00;
        }

        .box2{
            width: 100px;
            height: 100px;
            background-color: #0f0;
        }

        .box3{
            width: 100px;
            height: 100px;
            background-color: #00f;
        }


        .box4{
            width: 300px;
            height: 300px;
            background-color: gold;
        }



    </style>
</head>
<body>
    <div class="box">
        <div class="box1"></div>
        <div class="box2"></div>
        <div class="box3"></div>
        <div class="box4"></div>
    </div>
    文本
</body>
<script type="text/javascript">

</script>

</html>
